/**
 * @Title:
 * @Package：  
 * @Description: 
 * @author 
 * @date 
 * @since
 * @version 1.0
 * @see JDK1.7.0_67
 * @Copyright: 2016 武汉恒数利通技术有限公司 All rights reserved.
 */
package com.zcsy.commons.mobile;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.zcsy.commons.util.PropertiesLoader;

/**
 * @Title:MobileConfig
 * @Package：  com.zcsy.commons.mobile
 * @Description:客户端相关配置
 * @author wangj
 * @date 2016年5月31日上午10:03:04
 * @version 1.0
 * @see JDK1.7.0_67
 * @Copyright: 2016 武汉恒数利通技术有限公司 All rights reserved.
 */
public class MobileConfig {
	
		public static String MOBILE_TOKEN_EXPIRE = "";  //发短信的前缀
		
		public static String VERIFYCODE_EXPIRE = "";
		
		static Log log = LogFactory.getLog(MobileConfig.class);

		/** 
		 * @Title: load 
		 * @Description: 加载配置
		 * @param      
		 * @return void     
		 * @throws 
		 */
		static {
			log.info("mobile配置加载开始  ....");
			try {
				PropertiesLoader prop = new PropertiesLoader("config.properties");
				MOBILE_TOKEN_EXPIRE = prop.getProperty("mobile_token_expire");
				VERIFYCODE_EXPIRE = prop.getProperty("verifycode_expire");
			} catch (Exception e) {
				log.error("mobile配置加载失败");
			}
		}

		public static String getMOBILE_TOKEN_EXPIRE() {
			return MOBILE_TOKEN_EXPIRE;
		}
		
		public static String getVERIFYCODE_EXPIRE() {
			return VERIFYCODE_EXPIRE;
		}
	}


